From: John Crispin Date: Wed, 28 May 2025 07:55:13 +0000 (+0200) Subject: improve uconfig hostname and homekit weight X-Git-Url: http://git.openwrt.org/%22http:/oss.oetiker.ch/rrdtool//%22/%22http:/oss.oetiker.ch/rrdtool/%22?a=commitdiff_plain;h=4536dd8e3719b2898f6fc7e24f60e8e3c1631193;p=project%2Fufp.git improve uconfig hostname and homekit weight Signed-off-by: John Crispin --- diff --git a/data/dell.json b/data/dell.json deleted file mode 100644 index 7aa6091..0000000 --- a/data/dell.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "vendor=%": { - "Dell": [ - "mac-oui-50284a|1" - ] - }, - "vendor=Dell|class=laptop": { - "Precision 7680": [ - "wifi4|0,1,33,48,45,127,255(59),54,70,59,244,221(0050f202),htcap:19e7,htagg:17,htmcs:0000ffff,txpow:1600,extcap:0400ca02014040c0012120", - "wifi6|0,1,33,48,45,127,255(35),255(59),54,70,59,244,221(0050f202),htcap:19e7,htagg:17,htmcs:0000ffff,txpow:1600,extcap:0400ca02014040c0012120,hemac:abc09a307801,hephy:01fc0f168c09fd094e3f", - "dhcp_req|1,2,6,12,15,26,28,121,3,33,40,41,42,119,249,252,17" - ] - } -} diff --git a/plugins/plugin_mdns.uc b/plugins/plugin_mdns.uc index 308d379..5f7a92d 100644 --- a/plugins/plugin_mdns.uc +++ b/plugins/plugin_mdns.uc @@ -174,9 +174,10 @@ function handle_fritzbox(txt) return ret; } -function handle_uconfig(txt) +function handle_uconfig(txt, host) { let ret = []; + push(ret, `%device_name|mdns_device_name|${host}`); push(ret, "%class|mdns_uconfig|uconfig"); return ret; } @@ -299,7 +300,7 @@ function init(gl) { mdns_model_string: 5.0, mdns_printer: 5.0, mdns_scanner: 1.0, - homekit_class: 2.0, + homekit_class: 10.0, mdns_uconfig: 10.0, }); }